package com.szcinda.service.dto.calculatePrice;

import lombok.Data;

import java.io.Serializable;

@Data
public class PriceDto implements Serializable, Comparable<PriceDto> {
    private String type;   // IN OR OUT
    private String feeName;
    private String currency;
    private double feeCount;

    @Override
    public int compareTo(PriceDto o) {
        return o.getFeeCount() >= this.getFeeCount() ? 1 : -1;
    }
}
